<div id="wrapper" style="height:420px;">
<div id="contenido">
<?php if ($error) { ?>
<div class="warning"><?php echo $error; ?></div>
<?php } ?>
<div class="heading"><?php echo $heading_title; ?></div>
<div class="description"><?php echo $heading_description; ?></div>
<script type="text/javascript" src="javascript/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="javascript/tab/tab.js"></script>

<link rel="stylesheet" type="text/css" href="javascript/tab/tab.css" />

<script type="text/javascript" src="javascript/ajax/jquery.js"></script>

<link type="text/css" rel="stylesheet" href="javascript/date/dhtmlgoodies_calendar.css?random=20051112" media="screen"></LINK>
<script type="text/javascript" src="javascript/date/dhtmlgoodies_calendar.js?random=20060118"></script>

<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form" name="form">
  <div class="tab" id="tab">
    <div class="tabs"><a><?php echo $tab_general; ?></a><a>Texto</a></div>
    <div class="pages">
      <div class="page">
        <div class="pad">
          <table>
            <tr>
	          <td width="185"><?php echo $entry_codigo; ?></td>
              <td>
              	<input type="text" name="codigo" id="codigo" value="<?php echo $codigo; ?>" readonly/>
			 </td>
           </tr>
            <tr>
	          <td width="185"><span class="required">*</span> <?php echo $entry_titulo; ?></td>
              <td colspan="3"><input type="text" name="titulo" value="<?php echo $titulo; ?>" size="100" style="width:400px"/>
                <?php if ($error_titulo) { ?>
                <span class="error"><?php echo $error_titulo; ?></span>
                <?php } ?></td>
           </tr>
           <tr>
	          <td width="185"><span class="required">*</span> <?php echo $entry_desde; ?></td>
              <td>
              	<input type="text" value="<?php echo $desde; ?>" readonly id="desde" name="desde" size="10" />
              	<img src="template/default/image/cal.png" class="png" onclick="displayCalendar(document.getElementById('desde'),'dd-mm-yyyy',this)"/>
              </td>
	          <td><span class="required">*</span> <?php echo $entry_hasta; ?></td>
              <td>
              	<input type="text" value="<?php echo $hasta; ?>" readonly id="hasta" name="hasta" size="10" />
              	<img src="template/default/image/cal.png" class="png" onclick="displayCalendar(document.getElementById('hasta'),'dd-mm-yyyy',this)"/>
              </td>
            </tr> 
           </table>
        </div>
      </div>
      <div class="page">
        <div class="pad">
            <table>
                 <tr>
	          <td width="185" valign="top"><span class="required">*</span> <?php echo $entry_noticia; ?></td>
              <td colspan="3"><textarea name="noticia" id="noticia"><?php echo $noticia; ?></textarea>
                <?php if ($error_noticia) { ?>
                <span class="error"><?php echo $error_noticia; ?></span>
                <?php } ?></td>
           </tr>
            </table>
        </div>
      </div>
	</div> 	
  </div>
 <div class="task">
  <div class="enabled" onmouseover="className='hover'" onmouseout="className='enabled'" onclick="document.getElementById('form').submit();"><img src="template/default/image/save_enabled.png" alt="<?php echo $button_save; ?>" class="png" /><?php echo $button_save; ?></div>
  <div class="enabled" onmouseover="className='hover'" onmouseout="className='enabled'" onclick="location='<?php echo $cancel; ?>'"><img src="template/default/image/cancel_enabled.png" alt="<?php echo $button_cancel; ?>" class="png" /><?php echo $button_cancel; ?></div>
</div>
 
<script type="text/javascript"><!--
  var sBasePath = document.location.href.replace(/index\.php.*/, 'javascript/fckeditor/');
  var oFCKeditor          = new FCKeditor('noticia');
	  oFCKeditor.BasePath = sBasePath;
	  oFCKeditor.Value	= document.getElementById('noticia').value;
	  oFCKeditor.Width    = '750';
	  oFCKeditor.Height   = '280';
	  oFCKeditor.ReplaceTextarea();
  //--></script>
    <script type="text/javascript"><!--
  tabview_initialize('tab');
  //--></script>
</form>
</div>
</div>